package com.hframe.other;

public class MsgException extends Exception {
    private static final long serialVersionUID = 1L;
    private int error = 1;

    public MsgException(String string) {
        super(string);
    }

    public MsgException(String string, int error) {
        super(string);
        this.error = error;
    }

    public int getError() {
        return error;
    }

    public MsgException(Enum errorEnum) {
        super(errorEnum.toString());
        this.error = errorEnum.ordinal();
    }

}
